package edu.mse.camel.client.playback.views;

import java.util.ArrayList;
import java.util.List;
import java.util.Observable;

import edu.mse.camel.client.chat.message.IMessage;
import edu.mse.camel.client.chat.message.IMessageList;

public class PlaybackMessageList extends Observable implements IMessageList {

	private List<IMessage> messages;
	
	private float speed;
	
	public float getSpeed() {
		return speed;
	}

	public void setSpeed(float speed) {
		this.speed = speed;
	}

	private static PlaybackMessageList INSTANCE = new PlaybackMessageList();

	public static PlaybackMessageList getInstance() {
		return INSTANCE;
	}
	
	private PlaybackMessageList(){
		messages = new ArrayList<IMessage>();	
		speed = 10;
	}

	@Override
	public void addMessage(IMessage message) {
		messages.add(message);
	}

	@Override
	public List<IMessage> getMessages() {
		return messages;
	}

	@Override
	public void removeMessage(IMessage message) {
		// TODO Auto-generated method stub
	}

	@Override
	public void updateMessage(IMessage message) {
		// TODO Auto-generated method stub
	}
	
}
